column
目的 Purpose
Customizes a column definition使用例 Examples
static mapping = { currency column: "currency", sqlType: "char", length: 3 }
詳細 Description
Usage: 
使用方法: property_name(map)Usage:
 property_name(map)引数: Arguments:
- column- The name of the column as a String
- sqlType(optional) - The underlying SQL type
- enumType(optional) - The enum type in for type-safe Enum properties. Either- ordinalor- string.
- index(optional) - The index name
- unique(optional) - Whether it is unique
- length(optional) - The length of the column
- precision(optional) - The precision of the column
- scale(optional) - The scale of the column
- comment(optional) - The comment for the column (used to create the table DDL)
- defaultValue(optional) - The database default value
String property is typically mapped as a varchar(255) column. You can customize these with column configuration arguments:static mapping = { currency column: "currency", sqlType: "char", length: 3 }
column method to define each column:static mapping = { amount type: MonetaryUserType, { column name: "value" column name: "currency", sqlType: "char", length: 3 } }
delegate property:
static mapping = { delegate.currency column: "currency", sqlType: "char", length: 3 }

